package com.mxl.controller;

import com.mxl.entity.Book;
import com.mxl.service.BookService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    BookService bookService;
    @GetMapping("/login")
    public String login(){
      Book book = bookService.find(4);
        System.out.println(book.toString());
        return "okikkkk";
    }
}
